Moved the drawing of horizontal grid lines after cell drawing.
authorSzilárd Pfeiffer <mailbox@pfeifferszilard.hu>
Sun, 25 Jul 2010 12:46:57 +0000 (14:46 +0200)
committerKristian Rietveld <kris@gtk.org>
Sun, 25 Jul 2010 12:50:12 +0000 (14:50 +0200)
Without the change if the cell background is set the horizontal
grid line cannot be seen.

gtk/gtktreeview.c

index 3caa95d7f8f777101dff80de4f955c0b3ac5741c..3ccff33cdbf4a1ec0be6725612d6332b19204649 100644 (file)
@@ -4640,23 +4640,6 @@ gtk_tree_view_bin_expose (GtkWidget      *widget,
                                  background_area.height);
            }
 
-         if (draw_hgrid_lines)
-           {
-             if (background_area.y > 0)
-               gdk_draw_line (event->window,
-                              tree_view->priv->grid_line_gc,
-                              background_area.x, background_area.y,
-                              background_area.x + background_area.width,
-                              background_area.y);
-
-             if (y_offset + max_height >= event->area.height)
-               gdk_draw_line (event->window,
-                              tree_view->priv->grid_line_gc,
-                              background_area.x, background_area.y + max_height,
-                              background_area.x + background_area.width,
-                              background_area.y + max_height);
-           }
-
          if (gtk_tree_view_is_expander_column (tree_view, column))
            {
              if (!rtl)
@@ -4731,6 +4714,23 @@ gtk_tree_view_bin_expose (GtkWidget      *widget,
                                                   flags);
            }
 
+         if (draw_hgrid_lines)
+           {
+             if (background_area.y > 0)
+               gdk_draw_line (event->window,
+                              tree_view->priv->grid_line_gc,
+                              background_area.x, background_area.y,
+                              background_area.x + background_area.width,
+                              background_area.y);
+
+             if (y_offset + max_height >= event->area.height)
+               gdk_draw_line (event->window,
+                              tree_view->priv->grid_line_gc,
+                              background_area.x, background_area.y + max_height,
+                              background_area.x + background_area.width,
+                              background_area.y + max_height);
+           }
+
          if (gtk_tree_view_is_expander_column (tree_view, column) &&
              tree_view->priv->tree_lines_enabled)
            {